package com.ticket.sass.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ticket.sass.admin.mapper.DouyinGoodsExchangeSettingMapper;
import com.ticket.sass.admin.service.BaseService;
import com.ticket.sass.common.entity.tenant.DouyinGoodsExchangeSettingEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ywb
 * @since 2024-07-19
 */
@Service
public class DouyinGoodsExchangeSettingServiceImpl extends ServiceImpl<DouyinGoodsExchangeSettingMapper, DouyinGoodsExchangeSettingEntity> implements BaseService<DouyinGoodsExchangeSettingEntity> {
    public List<DouyinGoodsExchangeSettingEntity> getListBy(String productId){
        QueryWrapper<DouyinGoodsExchangeSettingEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("product_id", productId);
        return list(queryWrapper);
    }
}
